package com.luhuiguo.cms.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.i18n.client.Constants;

public interface GlobalConstants extends Constants {

    public static final GlobalConstants INSTANCE = GWT.create(GlobalConstants.class);

    
    @DefaultIntValue(50)
    int defaultPageSize();

    @DefaultStringValue("yyyy-MM-dd HH:mm:ss")
    String defaultDateTimeFormat();
    
    @DefaultStringValue("/")
    String pathSeparator();

    @DefaultStringValue("/login.html")
    String loginUrl();

    @DefaultStringValue("hint")
    String hint();

    @DefaultStringValue("[a-z0-9]{1,20}")
    String nameRegex();

    @DefaultIntValue(1)
    int minTitleLength();
    
    @DefaultIntValue(100)
    int maxTitleLength();

    @DefaultIntValue(250)
    int maxStringLength();
    
}
